package cn.hjm.hrm.dto;

import java.math.BigDecimal;

/**
 * 接收前端参数
 */
public class ProductDto {
    private Long id;
    private String name;
    private BigDecimal price;
    private Long number;

    public ProductDto(Long id, String name, BigDecimal price, Long number) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.number = number;
    }
    public ProductDto(){

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "ProductDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", number=" + number +
                '}';
    }
}
